	{% if has_presets %}
	<div dojoType="dijit.form.ComboButton" iconClass="{{ icon_class }}">
    	<span><b>{{ label }}</b></span>
    	<script type="dojo/method" event="onClick">
    	{{ on_click|safe }}
		</script>
        <div dojoType="dijit.Menu" id="{{ label }}Instances">
        	{% for preset in presets %}
        	<div dojoType="dijit.MenuItem" label="{{ preset.label }}">
        		<script type="dojo/method" event="onClick">
				{{ preset.on_click|safe }}
				</script>
        	</div>
            {% endfor %}
        </div>
	</div>
	{% else %}
	<div dojoType="dijit.form.Button" iconClass="{{ icon_class }}">
		<b>{{ label }}</b>
		<script type="dojo/method" event="onClick">
{{ on_click|safe }}
		</script>
	</div>
	{% endif %}